<?php 
$sql =	"SELECT
			  c.page_id,
			  d.title,
			  d.description,
			  d.meta_key,
			  d.meta_description	
		  FROM
			  pages AS c,
			  page_description AS d,
			  sef_url AS s
		  WHERE
		  
			  c.page_id = d.page_id
			  AND
			  d.lang_id = '".$_SESSION['lang_id']."'
			  
			  AND
				c.page_id = s.query
				AND
				s.lang_id = '".$_SESSION['lang_id']."'
				AND s.tamplate = 'page'
			 
			  AND
				s.sef_url = 'team' 
		  ";
$result = query($sql);
$row = mysql_fetch_object($result);


head(sth($row->title),sth($row->meta_description),sth($row->meta_key));


?>
		
		<section id="content" class="cf">
            <div class="gr3 right team-heading">
                <h1><?=stripslashes($row->title)?></h1>
                <?=stripslashes($row->description)?> 
            </div>
		<?php 
		
				$sql = "SELECT
				
				t.cover,
				d.title,
				s.sef_url
				
			
			FROM
				team AS t,
				team_description AS d,
				sef_url AS s
			WHERE
				s.query = t.team_id
				
				AND
				
				t.team_id = d.team_id
				
				AND
				s.tamplate='teamview'
				
				AND
				
				d.lang_id = '".$_SESSION['lang_id']."'
				
				AND
				
				s.lang_id = '".$_SESSION['lang_id']."'
				
				AND t.published
				
				
				ORDER BY  t.order_number DESC
				
			  ";
			$result = query($sql);
			
			while ($rowt = mysql_fetch_object($result)) {
				
				
				
				
		?>
      
        
          <div class="gr1 left">
            <a href="<?=HTML_BASE.$_SESSION['lang']?>/<?=$rowt->sef_url?>" >
                <img class="hover-item" data-caption="<?=$rowt->title?>" src="<?=HTML_BASE?>team_images/covers/<?=$rowt->cover?>" alt="<?=$rowt->title?>" title="<?=$rowt->title?>"/>
            </a>
        </div>
        
        <?php }?>
		
        <!--<div class="gr3 right">
            <h1><?=stripslashes($row->title)?></h1>
            <?=stripslashes($row->description)?> 
        </div>-->
 </section>

<?php
foot();
?>